package guestbook;
import com.google.appengine.api.datastore.Text;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable
public class totoRec extends abstractTotoObject {    
	
	@Persistent   
	private String[] score;
	@Persistent 
	private Text[] verbal;
   
	public totoRec(String[] score,Text[] verbal) {        
		this.score = score;        
		this.verbal = verbal;
		}    
	
	public String[] getScore() {        
		return score;    
		}    
	public Text[] getVerbal() {        
		return verbal;    
		}
		
	public void setScore(String[] score) {
		for (int i=0;i<16;i++){
			this.score[i] = score[i];
		}
		  
		}    
	public void setVerbal(String[] verbal) {
		for (int i=0;i<16;i++)
		{
			this.verbal[i] = new Text(verbal[i]);
		}    
	}
		
	public String toString(){
		String result="";
		for (int i=15;i>=0;i--){
			if (i!=0) result+=this.getScore()[i]+"$";
			else result+=this.getScore()[i];
		}
		
		result+="#";
		
		for (int i=15;i>=0;i--){
			if (i!=0) result+=this.getVerbal()[i].getValue()+"$";
			else result+=this.getVerbal()[i].getValue();
		}
				
		return result;		
		
	}

}